package de.duplicatedetector.init.language;

import java.io.File;

public class Language extends File {
	
	private static final long serialVersionUID = 1L;

	public static final String LANGUAGE_GERMAN = "german";
	public static final String LANGUAGE_ENGLISH = "english";
	
	private static final String FILE_EXTENSION = ".ini";
	private static final String ERROR_ON_EXTENSION = "Extension Error!";
	
	private String error;
	

	public Language(String path) {
		super(path);
		if(!path.endsWith(FILE_EXTENSION)) {
			error = ERROR_ON_EXTENSION;
		}
	}
	
	public String getError() {
		return error;
	}

}
